<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改酒店订单</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/base.css" type="text/css" media="screen" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/common/style/page.css" type="text/css" media="screen" />
<script src="${pageContext.request.contextPath}/common/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/common/js/common.js" type="text/javascript"></script>

<script type="text/javascript">
function submit(){
	$("#url").val('/panel/hotel/hotelOrder/hotelOrder!getHotelOrderListByPage.action');
	$("#form").submit();
}

</script>
</head>
<body>
<form id="form" action="updateOrder.action" method="post">
<input type="hidden" name="hotelOrder.id" value="${hotelOrder.id}"/>
<input type="hidden" name="url" id="url"/>
<div id="main_frame">	
	<div id="pagemenu">
		<a href="getHotelOrderListByPage.action" title="订单列表">订单列表</a>
	</div>
	<div class="listtitle">
		<ul>
			<li class="selected"><a href="javascript:void(0);" title="基本信息">基本信息</a></li>
		</ul>
	</div>
	<div class="listbox">
		<div>
			<table class="addtab" align="center">
				<tr>
					<th>订单编号：</th>
					<td>${hotelOrder.code}</td>
				</tr>
				<tr>
					<th>房型：</th>
					<td>${hotelOrder.roomName}</td>
				</tr>
				<tr>
					<th>下单日期：</th>
					<td><s:date name="hotelOrder.orderTime" format="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
				<tr>
					<th>入住日期：</th>
					<td><s:date name="hotelOrder.checkinTime" format="yyyy-MM-dd"/></td>
				</tr>
				<tr>
					<th>退房日期：</th>
					<td><s:date name="hotelOrder.checkoutTime" format="yyyy-MM-dd"/></td>
				</tr>
				<tr>
					<th>房间数量：</th>
					<td><input type="text" class="tx6" id="totalNum" name="hotelOrder.totalNum" value="${hotelOrder.totalNum}"/></td>
				</tr>
				<tr>
					<th>总价：</th>
					<td><input type="text" class="tx6" id="totalMoney" name="hotelOrder.totalMoney" value="${hotelOrder.totalMoney}"/></td>
				</tr>
				<tr>
					<th>客户姓名：</th>
					<td>
						<input type="text" class="tx6" id="name" name="hotelOrder.customerName" value="${hotelOrder.customerName}"/>
					</td>
				</tr>
				<tr>
					<th>身份证：</th>
					<td>
						<input type="text" class="tx6" id="identityCardNum" name="hotelOrder.identityCardNum" value="${hotelOrder.identityCardNum}"/>
					</td>
				</tr>
				<tr>
					<th>手机：</th>
					<td>
						<input type="text" class="tx6" id="telephone" name="hotelOrder.phone" value="${hotelOrder.phone}"/>
					</td>
				</tr>
				<tr>
					<th>订单状态：</th>
					<td>
						<s:if test="hotelOrder.tradeStatus==1">
					<font color="red">未付款</font>
					</s:if>
					<s:if test="hotelOrder.tradeStatus==2">
					<font color="green">已付款</font>
					</s:if>
					<s:if test="hotelOrder.tradeStatus==3">
					<font color="green">已入住</font>
					</s:if>
					<s:if test="hotelOrder.tradeStatus==4">
					<font color="green">已结束</font>
					</s:if>
					<s:if test="hotelOrder.tradeStatus==5">
					<font color="green">已取消</font>
					</s:if>
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>
</form>
<div id="bottombar">
	<div class="fr btns"><input onclick="submit();" type="button" value="保存" class="savebtn1"/><input type="button" value="返回" class="cancelbtn" onclick="javascript:history.go(-1)"/></div>
</div>
</body>
</html>